import { AppConfig } from 'remax/wechat'

const config: AppConfig = {
  pages: [
    'pages/screen-list/index',
    'pages/screen/index',
    'pages/promotion-list/index',
    'pages/promotion-add/index',
    'pages/promotion/index',
    'pages/cast-list/index',
    'pages/cast-add/index',
    'pages/cast/index',
    'pages/customer/index',
    'pages/profile/index',
    'pages/ticket/index',
    'pages/agreement/index',
  ],
  window: {
    navigationBarBackgroundColor: '#f6f6f6',
    navigationBarTextStyle: 'black',
    navigationBarTitleText: '蜗大郎商户端',
    backgroundColor: '#f6f6f6',
    backgroundTextStyle: 'light',
  },
  tabBar: {
    color: '#7a7e83',
    selectedColor: '#3d58ff',
    backgroundColor: '#ffffff',
    list: [
      {
        pagePath: 'pages/screen-list/index',
        text: '大屏',
        iconPath: '/images/screen.png',
        selectedIconPath: '/images/screen-selected.png',
      },
      {
        pagePath: 'pages/promotion-list/index',
        text: '素材',
        iconPath: '/images/promotion.png',
        selectedIconPath: '/images/promotion-selected.png',
      },
      {
        pagePath: 'pages/cast-list/index',
        text: '投放',
        iconPath: '/images/cast.png',
        selectedIconPath: '/images/cast-selected.png',
      },
      {
        pagePath: 'pages/customer/index',
        text: '客户',
        iconPath: '/images/customer.png',
        selectedIconPath: '/images/customer-selected.png',
      },
      {
        pagePath: 'pages/profile/index',
        text: '本店',
        iconPath: '/images/profile.png',
        selectedIconPath: '/images/profile-selected.png',
      },
    ],
  },
  permission: {
    'scope.userLocation': {
      desc: '你的位置信息将用于附近对象的获取',
    },
  },
}

export default config
